package cn.lsc.basic.controller.util;

import lombok.Data;

@Data
public class JsonResult {
    private Boolean success = true;
    private String msg="操作成功";
    //作为参数使用  文件上传作为路径传递
    private Object resultObj;



    public JsonResult setMsg(String msg) {
        this.msg = msg;
        this.success=false;
        return new JsonResult();
    }
    public JsonResult setResultObj(String msg) {
        this.resultObj = msg;

        return this;
    }
    public static JsonResult me(){

        return new JsonResult();
    }
}
